package to.pm.entity.magazzino;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

@Entity
public class DettaglioRicezioneConsumabile extends DettaglioRicezione implements Serializable {
    private static final long serialVersionUID = 1L;

    @ManyToOne
    private Stock stock;

    public Stock getStock() {
        return stock;
    }

    public void setStock(Stock stock) {
        this.stock = stock;
    }

    

    @Override
    public String toString() {
        return "to.pm.entity.magazzino.DettaglioRicezioneConsumabile[id=" + getId() + "]";
    }

    @Override
    public boolean isConsumabile() {
        return true;
    }

}
